import {createStore,compose,applyMiddleware} from 'redux';
import thunk from 'redux-thunk'; //一个可以在xxx里写函数的中间件  为了写ajax请求加载的  看actionCreators里面的getList方法，可以返回一个函数
import reducer from './reducer';


const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store=createStore(reducer,composeEnhancers(
    applyMiddleware(thunk)
));
export  default  store;